import request from '@/utils/request'

// 查询销售单经办人员列表
export function listBizOrderHandler (query) {
  return request({
    url: '/biz/bizOrderHandler/list',
    method: 'get',
    params: query
  })
}

// 查询销售单经办人员详细
export function getBizOrderHandler (orderId) {
  return request({
    url: '/biz/bizOrderHandler/' + orderId,
    method: 'get'
  })
}

// 新增销售单经办人员
export function addBizOrderHandler (data) {
  return request({
    url: '/biz/bizOrderHandler',
    method: 'post',
    data: data
  })
}

// 修改销售单经办人员
export function updateBizOrderHandler (data) {
  return request({
    url: '/biz/bizOrderHandler',
    method: 'put',
    data: data
  })
}

// 删除销售单经办人员
export function delBizOrderHandler (orderId) {
  return request({
    url: '/biz/bizOrderHandler/' + orderId,
    method: 'delete'
  })
}


// 导出销售单经办人员
export function exportBizOrderHandler (query) {
  return request({
    url: '/biz/bizOrderHandler/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizOrderHandler/getInitData/' + dictTypes,
    method: 'get'
  })
}
